//
//  UIImage+Compress.h
//  ToHow
//
//  Created by maple on 14-5-6.
//  Copyright (c) 2013年 Apps123. All rights reserved.
//

#import <UIKit/UIKit.h>

#define MAX_LARGE_IMAGEDATA_LEN  32000.0f  //30k

@interface UIImage (Compress)

- (UIImage *)compressedImage;

- (NSData *)compressedData:(CGFloat)compressionQuality;

- (CGFloat)compressionQuality;

- (NSData *)compressedData;

- (UIImage *)scaleToSize:(CGSize)size;

- (UIImage *)compressedImage:(CGFloat)imagePix;

+ (UIImage *)screenShots;
- (UIImage *)compressedWeiXinImage;

@end
